package com.wushi.lenovo.asia5b.app_di;


import com.wushi.lenovo.asia5b.app_http.ApiService;
import com.wushi.lenovo.asia5b.app_http.OrderService;
import com.wushi.lenovo.asia5b.app_http.TopupService;

import dagger.Module;
import dagger.Provides;
import retrofit2.Retrofit;

@Module
public class ApiServiceModule {

    @Provides
    public ApiService providesApiService(Retrofit retrofit) {
        return retrofit.create(ApiService.class);
    }

    @Provides
    public OrderService providesOrderService(Retrofit retrofit) {
        return retrofit.create(OrderService.class);
    }

    @Provides
    public TopupService providesTopupService(Retrofit retrofit) {
        return retrofit.create(TopupService.class);
    }

}
